package org.news.web.domain.bo;

import org.news.web.domain.Likes;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

import java.util.Date;

/**
 * 点赞功能业务对象 likes
 *
 * @author Gu Ci
 * @date 2024-04-03
 */
@Data
@AutoMapper(target = Likes.class, reverseConvertGenerate = false)
public class LikesBo {

    /**
     * 点赞ID
     */
//    @NotNull(message = "点赞ID不能为空", groups = { EditGroup.class })
    private Long likeId;

    /**
     * 用户ID
     */
//    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


    private String username;

    /**
     * 新闻ID
     */
//    @NotNull(message = "新闻ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long newsId;

    /**
     * 记录点赞时间
     */
//    @NotNull(message = "记录点赞时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date creationTime;


}
